package com.hospital.hospitalworkcenterservice.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.hospital.common.dto.SickpersonDto;
import com.hospital.hospitalworkcenterservice.entity.Sickperson;
import com.hospital.hospitalworkcenterservice.mapper.SickpersonMapper;
import com.hospital.hospitalworkcenterservice.service.ISickpersonService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 患者表 服务实现类
 * </p>
 *
 * @author 王春备
 * @since 2020-10-20
 */
@Service
public class SickpersonServiceImpl extends ServiceImpl<SickpersonMapper, Sickperson> implements ISickpersonService {

    @Override
    public IPage<Sickperson> findPage(Page page, SickpersonDto sickPersonDto) {
        return baseMapper.findPage(page,sickPersonDto);
    }

    @Override
    public Sickperson selectByid(Integer id) {
        return baseMapper.selectByid(id);
    }
}
